#app {
  .main-container {
    min-height: 100%;
    transition: margin-left 0.28s;
    margin-left: $sideBarWidth;
    position: relative;
  }

  .sidebar-container {
    -webkit-transition: width 0.28s;
    transition: width 0.28s;
    width: $sideBarWidth !important;
    background-color: $menuBg;
    height: 100%;
    position: fixed;
    font-size: 0px;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    //overflow: hidden;
    //-webkit--box-shadow: 0px 3px 6px rgba(0,0,0,0.16);
    //box-shadow: 0px 3px 6px rgba(0,0,0,0.16);
    .el-scrollbar{
      box-shadow: 1px 0 6px 1px rgba(0,76,151,0.1);
    }
    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out,
        0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
      //margin-right: 0 !important;
      //overflow-y: hidden;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 50px);
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 10px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }
    .el-submenu__title,.el-menu-item{
      height: $sideBarMenuItem;
      line-height: $sideBarMenuItem;
      color: var(--h-color) !important;
      span{
        width: calc(100% - 24px);
      }
    }
    .el-menu-item{
      display: flex;
      align-items: center;
    }

    .el-menu-item,
    .el-submenu__title {
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
      font-size: 21px;
      font-weight: 400;
    }

    // menu hover
    .submenu-title-noDropdown,
    .el-submenu__title {
      &:hover {
        background-color: transparent !important;
      }
    }

    & .theme-dark .is-active > .el-submenu__title {
      color: $subMenuActiveText !important;
    }

    & .nest-menu .el-submenu > .el-submenu__title,
    & .el-submenu .el-menu-item {
      min-width: $sideBarWidth !important;
      background-color: $subMenuBg !important;

      &:hover {
        color: #FFFFFF !important;
        background-color: var(--primary-color) !important;
      }
    }
    .el-menu{
      .is-active,.is-active:hover {
        color: #FFFFFF !important;
        background-color: var(--primary-color) !important;
      }
      .el-submenu{
        .el-menu-item{
          transition: padding-left .2s ease-in-out;
          padding-left: 30px !important;
          color: #808A97 !important;
          height: 40px;
          line-height: 40px;
          &:hover{
            background-color: transparent !important;
            color: #808A97 !important;
          }
        }
        &,&:hover{
          background-color: transparent !important;
          color: #333333 !important;
        }
        .is-active{
          padding-left: 55px !important;
        }
        .is-active,.is-active:hover,&.is-active .el-menu-item:hover{
          color: var(--primary-color) !important;
          background-color: rgba(76, 89, 198,.15) !important;
        }
        &.is-active:hover{
          background-color: transparent !important;
        }
        .is-active{
          border-right: 2px solid var(--primary-color);
          span{
            width: calc(100% - 24px);
          }
        }
      }
    }
    .el-submenu__icon-arrow{
      margin-top: -2px !important;
    }
  }

  .pc{
    .el-menu-item{
      display: flex;
      flex-direction:column;
      align-items: center;
      justify-content: center;
      height: auto !important;
      line-height:  initial;
      margin-bottom: 32px;
    }
    .svg-icon{
      margin-right:0;
    }
    .el-menu-item span{
      font-size: 12px;
      text-align: center;
      width:100% !important;
      padding-top: 7px;
    }
    .sidebar-container {
      width: 70px !important;
    }

    .main-container {
      margin-left: 70px;
    }
  }
  .hideSidebar {


    .submenu-title-noDropdown {
      padding: 0 !important;
      position: relative;

      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }
      }
    }

    .el-submenu {
      overflow: hidden;

      & > .el-submenu__title {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }

        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }

    .el-menu--collapse {
      .el-submenu {
        & > .el-submenu__title {
          & > span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: $sideBarWidth !important;
  }

  // mobile responsive
  .mobile {
    .el-menu-item{
      display: flex;
      flex-direction:column;
      align-items: center;
      justify-content: center;
      height: auto !important;
      line-height:  initial;
      margin-bottom: 32px;
    }
    .svg-icon{
      margin-right:0;
    }
    .el-menu-item span{
      font-size: 12px;
      text-align: center;
      width:100% !important;
      padding-top: 7px;
    }


    .main-container {
      margin-left: 0;
    }

    .sidebar-container {
      transition: transform 0.28s;
      width: 70px !important;
    }

    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-245px, 0, 0);
      }
      .menu{
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-245px, 0, 0);
      }
    }
    .menu{
      transition: transform 0.28s;
      width: 175px;
      position: fixed;
      top: 0;
      left:70px;
      bottom: 0;
      height: 100%;
      z-index: 9999;
    }
  }

  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

// when menu collapsed
.el-menu--vertical {
  & > .el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }

  .nest-menu .el-submenu > .el-submenu__title,
  .el-menu-item {
    &:hover {
      // you can use $subMenuHover
      background-color: rgba(0, 0, 0, 0.06) !important;
    }
  }

  // the scroll bar appears when the subMenu is too long
  > .el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}
